package kr.co.doriclassic.chpater22test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Search {
	public static void main(String[] args) {
		String[] fruit = {"Bread", "Apple", "Chease"};
				
		List<String> list = Arrays.asList(fruit); 
		Collections.sort(list);
		System.out.println(list);
		System.out.println(Collections.binarySearch(list, "Bread"));
	}
}
